package com.ffapp.demo.bean;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;
import java.util.List;

public class DispatchListBean extends BaseListBeanXF {

    private ArrayList<DispatchListData> list = new ArrayList<DispatchListData>();

    public ArrayList<DispatchListData> getList() {
        return list;
    }

    public void setList(ArrayList<DispatchListData> list) {
        this.list = list;
    }

    @JSONField(serialize = false)
    public void addListBean(DispatchListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrent_page() == INIT_PAGE) {
            setList(listbean.getList());
        } else {
            if (list == null)
                list = new ArrayList<DispatchListData>();
            list.addAll(listbean.getList());
        }
        setListBeanData(listbean);
    }


    List<String> carStatsList;

    public List<String> getCarStatusList(){
        if(carStatsList == null){
            carStatsList = new ArrayList<>();
            carStatsList.add("待命");
            carStatsList.add("执勤");
            carStatsList.add("维修");
            carStatsList.add("保养");
            carStatsList.add("报废");
        }
        return carStatsList;
    }



}
